Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues with restarting servers #2088

Merged
merged 1 commit into from
Oct 18, 2022
Merged

fix issues with restarting servers #2088

merged 1 commit into from
Oct 18, 2022

Conversation

rchl
Copy link
Member

@rchl rchl commented Oct 13, 2022

There were issues with restarting servers when there were more than one views using the same session and the corresponding server was restarted. Only the active view would start the session again and on other views the session would not start.

Fixed by using WindowManager.restart_sessions_async which re-registers all view listeners rather than the (internal) WindowManager._end_sessions_async and manually registering just the active view listener.

Also removed unnecessary WindowManager._end_sessions_async call after disabling server globally as ending the sessions is already handled on disabling the config (saving settings).

@predrag-codetribe
Copy link

There were issues with restarting servers when there were more than one views using the same session and the corresponding server was restarted. Only the active view would start the session again and on other views the session would not start.

Can confirm that this does fix this issue.

@rchl
Copy link
Member Author

rchl commented Oct 18, 2022

I don't know who you are but I'll take it ;)

@rchl rchl merged commit e1be509 into main Oct 18, 2022
@rchl rchl deleted the fix/restart-server branch October 18, 2022 06:54
rchl added a commit that referenced this pull request Oct 18, 2022
* origin/main:
  fix issues with restarting servers (#2088)
rchl added a commit that referenced this pull request Jan 16, 2023
* main:
  Focus symbol closest to selection on showing document symbols
  Properly handle disabling of the LSP package (#2085)
  fix issues with restarting servers (#2088)
  Add `$line` and `$character` expansion variables (#2092)
  Only enable Goto Diagnostic commands if diagnostic with configured severity exists (#2091)
  Update diagnostics gutter icons and change default to "sign" (#2086)
  Fix short color box rendering bug after color presentation change (#2087)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants